package com.hd.trans.network.bean;


import android.os.Parcel;
import android.os.Parcelable;

/**
 * Author:  Nicky
 * Date:    2019/12/16 10:56
 * Desc:    校验上传文件返回数据
 */
public class VerifyResponse extends DataResponse implements Parcelable {


    private String timestamp;//
    private String tasktag;//
    private String tasktoken;//


    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getTasktag() {
        return tasktag;
    }

    public void setTasktag(String tasktag) {
        this.tasktag = tasktag;
    }

    public String getTasktoken() {
        return tasktoken;
    }

    public void setTasktoken(String tasktoken) {
        this.tasktoken = tasktoken;
    }

    @Override
    public String toString() {
        return "FileVerifyResponse{" +
                "timestamp=" + timestamp +
                ", tasktag='" + tasktag + '\'' +
                ", tasktoken='" + tasktoken + '\'' +
                ", code=" + code +
                ", message='" + message + '\'' +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.timestamp);
        dest.writeString(this.tasktag);
        dest.writeString(this.tasktoken);
    }

    public VerifyResponse() {
    }

    protected VerifyResponse(Parcel in) {
        this.timestamp = in.readString();
        this.tasktag = in.readString();
        this.tasktoken = in.readString();
    }

    public static final Creator<VerifyResponse> CREATOR = new Creator<VerifyResponse>() {
        @Override
        public VerifyResponse createFromParcel(Parcel source) {
            return new VerifyResponse(source);
        }

        @Override
        public VerifyResponse[] newArray(int size) {
            return new VerifyResponse[size];
        }
    };
}
